<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/FCKEdit" prefix="fck"%>
<%@ include file="/jsp/admintop.jsp"%>
<%@ include file="/jsp/jscommom.jsp"%>
<%@ include file="/jsp/viewtop.jsp"%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>岗位配置</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	
	<script type="text/javascript">
	//必填项
 function domethod(method)
 {
  if(document.all.postName.value==""){
    alert("对不起,岗位名称不能为空!");
    return false;
    }
    document.all.method.value=method;
    document.forms[0].submit();
    document.all.method.value="";
 }
 
 function reset(){
 document.forms[0].reset();
 }
</script>
<%
String staId = request.getParameter("staId");
 %>
	<body>
		<html:form action="/system/admin/stationmanage/addsubsta" method="post">
			<html:hidden property="method" />
			<html:hidden property="staId" value="<%=staId %>"/>
			<div align="center">
				<table width="97%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
					<tr>
						<td class="titlebg" colspan="4">
							添加岗位
						</td>
					</tr>
					<tr>
						<td class="mtdtitle1">
							岗位名称
						</td>
						<td class="mtdtextleft">
							<html:text property="postName" styleClass="input1"></html:text>
						</td>

						<td class="mtdtitle1">
							状态
						</td>
						<td class="mtdtextleft">
							<html:select property="status" styleClass="input1">
								<option value="1">
									有效
								</option>
								<option value="0">
									无效
								</option>
							</html:select>
						</td>
					</tr>

					

					<tr>
						<td colspan="4" class="mtdtitle1">
						<input type="button" onclick="domethod('add')" value="添加"
								class="tbutton" />
						<input type="reset" class="tbutton" value="重置" />
								<input type="button" onclick="window.close();" value="关闭"
								class="tbutton" />
						</td>
					</tr>
				</table>
			</div>
		</html:form>
	</body>
</html>
